/* 基础样式与变量 */
:root {
    --primary-color: #12B7F5;
    --primary-dark: #0D9CDB;
    --secondary-color: #FF9500;
    --vip-color: #FFC107;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #EBEDF0;
    --bg-color: #F5F6F7;
    --card-bg: #FFFFFF;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: #F0F2F5;
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: #E4E6EB;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-vip {
    background-color: var(--vip-color);
    color: #7A4F01;
}

.btn-vip:hover {
    background-color: #FFB700;
}

/* 顶部导航栏 */
.top-nav {
    background-color: #2E2E2E;
    color: white;
    height: 56px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    margin-right: 30px;
}

.logo i {
    margin-right: 8px;
    font-size: 24px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    height: 100%;
    flex: 1;
}

.nav-menu li {
    display: flex;
    align-items: center;
    position: relative;
    margin-right: 2px;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    height: 100%;
    color: #D8D8D8;
    transition: var(--transition);
    font-size: 14px;
}

.nav-menu li a i {
    margin-right: 8px;
    font-size: 18px;
}

.nav-menu li.active a, .nav-menu li:hover a {
    color: white;
}

.nav-menu li.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.user-info {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    margin-left: 15px;
}

.user-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification {
    position: relative;
    margin-right: 15px;
    font-size: 18px;
    color: #D8D8D8;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.notification:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.notification::after {
    content: attr(data-count);
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #FF3B30;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.user-avatar {
    position: relative;
    margin-right: 8px;
}

.user-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background-color: #4CD964;
    border-radius: 50%;
    border: 2px solid #2E2E2E;
}

.username {
    font-size: 14px;
    margin-right: 8px;
    font-weight: 500;
}

.user-info i {
    font-size: 12px;
    transition: var(--transition);
}

.user-info:hover i {
    transform: rotate(180deg);
}

/* 主体内容 */
.main-content {
    display: flex;
    margin-top: 56px;
    padding: 20px 0;
}

.left-sidebar {
    width: 240px;
    margin-right: 20px;
    flex-shrink: 0;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.right-sidebar {
    width: 280px;
    margin-left: 20px;
    flex-shrink: 0;
}

/* 卡片样式 */
.profile-card, .sidebar-module, .post-box, .feed-item {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}

.profile-card:hover, .sidebar-module:hover, .post-box:hover, .feed-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 个人资料卡片 */
.profile-card {
    position: relative;
}

.profile-bg {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
}

.profile-info {
    padding: 20px;
    text-align: center;
    position: relative;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
}



.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    margin: -50px auto 0;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-badge.online {
    background-color: #4CD964;
}

.status-badge.offline {
    background-color: #D8D8D8;
}

.profile-info h3 {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 18px;
}

.profile-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.4;
}

.stats {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 15px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.number {
    display: block;
    font-weight: bold;
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 4px;
}

.label {
    font-size: 12px;
    color: var(--text-lighter);
}

.profile-actions {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.btn-edit {
    flex: 1;
}

.btn-vip {
    flex: 1;
}

/* 侧边栏模块 */
.sidebar-module {
    padding: 15px;
}

.module-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.module-header i {
    font-size: 16px;
    color: var(--text-light);
    margin-right: 8px;
}

.module-header h3 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.view-all {
    font-size: 12px;
    color: var(--text-lighter);
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-color);
}

/* 最近访客 */
.visitors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.visitor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.visitor-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 6px;
    object-fit: cover;
    transition: var(--transition);
}

.visitor-item:hover img {
    transform: scale(1.1);
}

.visitor-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.visitor-item:hover::after {
    opacity: 1;
    bottom: -30px;
}

/* 发表动态 */
.post-box {
    padding: 15px;
}

.post-header {
    display: flex;
    margin-bottom: 15px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.post-box textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    line-height: 1.5;
}

.post-box textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(18, 183, 245, 0.2);
}

.post-box textarea::placeholder {
    color: var(--text-lighter);
}

.post-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tools {
    display: flex;
    gap: 4px;
}

.tool-btn {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
}

.tool-btn:hover {
    color: var(--primary-color);
    background-color: rgba(18, 183, 245, 0.1);
}

.tool-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.tool-btn:hover::after {
    opacity: 1;
    bottom: -40px;
}

.post-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.post-btn i {
    font-size: 14px;
}

/* 动态列表 */
.feed-list {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.feed-item {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-header {
    display: flex;
    margin-bottom: 12px;
    position: relative;
}

.feed-avatar-container {
    position: relative;
    margin-right: 12px;
    flex-shrink: 0;
}

.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-user {
    flex: 1;
    min-width: 0;
}

.feed-user h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.feed-meta {
    font-size: 13px;
    font-weight: normal;
    color: var(--text-light);
    margin-left: 6px;
}

.time {
    font-size: 12px;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
}

.time i {
    margin-left: 6px;
    font-size: 10px;
    color: var(--text-lighter);
}

.feed-actions {
    display: flex;
    align-items: center;
}

.feed-more {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feed-more:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.feed-content {
    margin-left: 52px;
    margin-bottom: 12px;
}

.feed-content p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
}

.feed-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 12px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.feed-images img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.feed-images img:hover {
    opacity: 0.9;
}

.feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    font-size: 12px;
    color: var(--primary-color);
    background-color: rgba(18, 183, 245, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    transition: var(--transition);
}

.tag:hover {
    background-color: rgba(18, 183, 245, 0.2);
}

.shared-link {
    display: flex;
    margin-top: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.shared-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.link-image {
    width: 80px;
    flex-shrink: 0;
}

.link-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-info {
    padding: 12px;
    flex: 1;
}

.link-info h5 {
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--text-color);
    font-weight: 500;
}

.link-info p {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.link-domain {
    font-size: 11px;
    color: var(--primary-color);
    display: block;
    margin-top: 4px;
}

.feed-footer {
    margin-left: 52px;
}

.feed-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.likes-count {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
}

.likes-count i {
    color: var(--primary-color);
    margin-right: 4px;
    font-size: 14px;
}

.comments-count {
    font-size: 13px;
    color: var(--text-light);
}

.feed-buttons{
    display: flex;
    gap: 8px;
}

.like-btn, .comment-btn, .share-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0;
    border-radius: var(--radius-sm);
}

.like-btn:hover, .comment-btn:hover, .share-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.like-btn.liked {
    color: var(--primary-color);
}

.like-btn.liked i {
    font-weight: 900;
}

/* 最近动态 */
.activity-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: var(--transition);
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list li:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.activity-list li img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-content p {
    font-size: 13px;
    margin-bottom: 3px;
    line-height: 1.4;
}

.activity-highlight {
    color: var(--primary-color);
}

.activity-time {
    font-size: 11px;
    color: var(--text-lighter);
}

/* 好友推荐 */
.friend-recommend {
    display: grid;
    gap: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.friend-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.friend-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-info h5 {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: 500;
}

.mutual-friends {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.mutual-friends i {
    font-size: 12px;
    color: var(--text-lighter);
}

.friend-actions {
    display: flex;
    gap: 6px;
}

/* 浮动按钮 */
.floating-actions {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 999;
}

.fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: var(--shadow-md);
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fab-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
}

.fab-btn.primary {
    background-color: var(--primary-color);
    color: white;
}

.fab-btn.primary:hover {
    background-color: var(--primary-dark);
}

.fab-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.fab-btn:hover::after {
    opacity: 1;
    right: 65px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 100px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    
    .left-sidebar {
        width: 200px;
    }
}

@media (max-width: 992px) {
    .left-sidebar {
        display: none;
    }
    
    .content-area {
        margin: 0 auto;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .nav-menu li a span {
        display: none;
    }
    
    .nav-menu li a i {
        margin-right: 0;
        font-size: 20px;
    }
    
    .username {
        display: none;
    }
    
    .user-info i {
        display: none;
    }
    
    .notification {
        margin-right: 0;
    }
    
    .floating-actions {
        right: 15px;
        bottom: 15px;
    }
    
    .back-to-top {
        right: 15px;
        bottom: 80px;
    }
}

/* 工具提示 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

[data-tooltip]:hover::after {
    opacity: 1;
    bottom: -35px;
}